ResourceCopy Method (String, String, Boolean, Boolean) |
Copies an existing resource to a new resource.
Overwriting a existing resource is allowed if parameter overwrite is true.
Namespace:
Independentsoft.Webdav
Assembly:
Independentsoft.Webdav (in Independentsoft.Webdav.dll) Version: 1.0.700.18437
Syntaxpublic bool Copy(
string source,
string destination,
bool overwrite,
bool recursive
)
Public Function Copy (
source As String,
destination As String,
overwrite As Boolean,
recursive As Boolean
) As Boolean
Parameters
- source
- Type: SystemString
Source resource URI. - destination
- Type: SystemString
Destination resource URI. - overwrite
- Type: SystemBoolean
True to allow an existing resource to be overwritten; otherwise, false. - recursive
- Type: SystemBoolean
True to copy this resource and all subresources. False means only copy this resource (collection) without subresources.
Return Value
Type:
BooleanTrue if success; otherwise, false.
Remarks
Some WebDAV servers doesn't understand resursive parameter.
See Also